package cate.game.role.mall.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBMall;
import cate.game.role.Role;
import cate.game.role.mall.RoleMall;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的商城信息的返回")
public class MyMallDataResp implements MsgOutput {

    @NoteField(value = "我的商城信息")
    public RoleMall data;

    public MyMallDataResp(){}

    public MyMallDataResp(Role role) {
        this.data = role.getMall();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBMall.MALL_DATA_RESP;
    }
}
